package com.example.redistest.entity;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
@Table(name = "ele_base_agency_copy1", schema = "zhcz_uum", catalog = "")
public class EleBaseAgencyEntity {
    private long id;
    private String createdBy;
    private String createdById;
    private Timestamp createdDate;
    private String updatedBy;
    private String updatedById;
    private Timestamp updatedDate;
    private String isDelete;
    private int ver;
    private String bid;
    private String tenantId;
    private String fiscalYear;
    private String systemCode;
    private String dictBid;
    private String eleValCode;
    private String eleValName;
    private String description;
    private String parentId;
    private Integer sort;
    private String isLeaf;
    private Integer eleValLevel;
    private String isEnable;
    private String isSelect;
    private String treeCode;
    private String extendString1;
    private String extendString2;
    private String extendString3;
    private String eleCatalogId;
    private String eleCode;
    private String eleName;
    private Integer createType;
    private Integer reGrant;

    @Id
    @Column(name = "id")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "created_by")
    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    @Basic
    @Column(name = "created_by_id")
    public String getCreatedById() {
        return createdById;
    }

    public void setCreatedById(String createdById) {
        this.createdById = createdById;
    }

    @Basic
    @Column(name = "created_date")
    public Timestamp getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Timestamp createdDate) {
        this.createdDate = createdDate;
    }

    @Basic
    @Column(name = "updated_by")
    public String getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    @Basic
    @Column(name = "updated_by_id")
    public String getUpdatedById() {
        return updatedById;
    }

    public void setUpdatedById(String updatedById) {
        this.updatedById = updatedById;
    }

    @Basic
    @Column(name = "updated_date")
    public Timestamp getUpdatedDate() {
        return updatedDate;
    }

    public void setUpdatedDate(Timestamp updatedDate) {
        this.updatedDate = updatedDate;
    }

    @Basic
    @Column(name = "is_delete")
    public String getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete;
    }

    @Basic
    @Column(name = "ver")
    public int getVer() {
        return ver;
    }

    public void setVer(int ver) {
        this.ver = ver;
    }

    @Basic
    @Column(name = "bid")
    public String getBid() {
        return bid;
    }

    public void setBid(String bid) {
        this.bid = bid;
    }

    @Basic
    @Column(name = "tenant_id")
    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    @Basic
    @Column(name = "fiscal_year")
    public String getFiscalYear() {
        return fiscalYear;
    }

    public void setFiscalYear(String fiscalYear) {
        this.fiscalYear = fiscalYear;
    }

    @Basic
    @Column(name = "system_code")
    public String getSystemCode() {
        return systemCode;
    }

    public void setSystemCode(String systemCode) {
        this.systemCode = systemCode;
    }

    @Basic
    @Column(name = "dict_bid")
    public String getDictBid() {
        return dictBid;
    }

    public void setDictBid(String dictBid) {
        this.dictBid = dictBid;
    }

    @Basic
    @Column(name = "ele_val_code")
    public String getEleValCode() {
        return eleValCode;
    }

    public void setEleValCode(String eleValCode) {
        this.eleValCode = eleValCode;
    }

    @Basic
    @Column(name = "ele_val_name")
    public String getEleValName() {
        return eleValName;
    }

    public void setEleValName(String eleValName) {
        this.eleValName = eleValName;
    }

    @Basic
    @Column(name = "description")
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Basic
    @Column(name = "parent_id")
    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    @Basic
    @Column(name = "sort")
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Basic
    @Column(name = "is_leaf")
    public String getIsLeaf() {
        return isLeaf;
    }

    public void setIsLeaf(String isLeaf) {
        this.isLeaf = isLeaf;
    }

    @Basic
    @Column(name = "ele_val_level")
    public Integer getEleValLevel() {
        return eleValLevel;
    }

    public void setEleValLevel(Integer eleValLevel) {
        this.eleValLevel = eleValLevel;
    }

    @Basic
    @Column(name = "is_enable")
    public String getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(String isEnable) {
        this.isEnable = isEnable;
    }

    @Basic
    @Column(name = "is_select")
    public String getIsSelect() {
        return isSelect;
    }

    public void setIsSelect(String isSelect) {
        this.isSelect = isSelect;
    }

    @Basic
    @Column(name = "tree_code")
    public String getTreeCode() {
        return treeCode;
    }

    public void setTreeCode(String treeCode) {
        this.treeCode = treeCode;
    }

    @Basic
    @Column(name = "extend_string1")
    public String getExtendString1() {
        return extendString1;
    }

    public void setExtendString1(String extendString1) {
        this.extendString1 = extendString1;
    }

    @Basic
    @Column(name = "extend_string2")
    public String getExtendString2() {
        return extendString2;
    }

    public void setExtendString2(String extendString2) {
        this.extendString2 = extendString2;
    }

    @Basic
    @Column(name = "extend_string3")
    public String getExtendString3() {
        return extendString3;
    }

    public void setExtendString3(String extendString3) {
        this.extendString3 = extendString3;
    }

    @Basic
    @Column(name = "ELE_CATALOG_ID")
    public String getEleCatalogId() {
        return eleCatalogId;
    }

    public void setEleCatalogId(String eleCatalogId) {
        this.eleCatalogId = eleCatalogId;
    }

    @Basic
    @Column(name = "ELE_CODE")
    public String getEleCode() {
        return eleCode;
    }

    public void setEleCode(String eleCode) {
        this.eleCode = eleCode;
    }

    @Basic
    @Column(name = "ELE_NAME")
    public String getEleName() {
        return eleName;
    }

    public void setEleName(String eleName) {
        this.eleName = eleName;
    }

    @Basic
    @Column(name = "create_type")
    public Integer getCreateType() {
        return createType;
    }

    public void setCreateType(Integer createType) {
        this.createType = createType;
    }

    @Basic
    @Column(name = "re_grant")
    public Integer getReGrant() {
        return reGrant;
    }

    public void setReGrant(Integer reGrant) {
        this.reGrant = reGrant;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        EleBaseAgencyEntity that = (EleBaseAgencyEntity) o;
        return id == that.id &&
                ver == that.ver &&
                Objects.equals(createdBy, that.createdBy) &&
                Objects.equals(createdById, that.createdById) &&
                Objects.equals(createdDate, that.createdDate) &&
                Objects.equals(updatedBy, that.updatedBy) &&
                Objects.equals(updatedById, that.updatedById) &&
                Objects.equals(updatedDate, that.updatedDate) &&
                Objects.equals(isDelete, that.isDelete) &&
                Objects.equals(bid, that.bid) &&
                Objects.equals(tenantId, that.tenantId) &&
                Objects.equals(fiscalYear, that.fiscalYear) &&
                Objects.equals(systemCode, that.systemCode) &&
                Objects.equals(dictBid, that.dictBid) &&
                Objects.equals(eleValCode, that.eleValCode) &&
                Objects.equals(eleValName, that.eleValName) &&
                Objects.equals(description, that.description) &&
                Objects.equals(parentId, that.parentId) &&
                Objects.equals(sort, that.sort) &&
                Objects.equals(isLeaf, that.isLeaf) &&
                Objects.equals(eleValLevel, that.eleValLevel) &&
                Objects.equals(isEnable, that.isEnable) &&
                Objects.equals(isSelect, that.isSelect) &&
                Objects.equals(treeCode, that.treeCode) &&
                Objects.equals(extendString1, that.extendString1) &&
                Objects.equals(extendString2, that.extendString2) &&
                Objects.equals(extendString3, that.extendString3) &&
                Objects.equals(eleCatalogId, that.eleCatalogId) &&
                Objects.equals(eleCode, that.eleCode) &&
                Objects.equals(eleName, that.eleName) &&
                Objects.equals(createType, that.createType) &&
                Objects.equals(reGrant, that.reGrant);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, createdBy, createdById, createdDate, updatedBy, updatedById, updatedDate, isDelete, ver, bid, tenantId, fiscalYear, systemCode, dictBid, eleValCode, eleValName, description, parentId, sort, isLeaf, eleValLevel, isEnable, isSelect, treeCode, extendString1, extendString2, extendString3, eleCatalogId, eleCode, eleName, createType, reGrant);
    }
}
